package com.android.zmusic.musicplay;

import android.graphics.drawable.Drawable;
import android.graphics.drawable.LevelListDrawable;

public class MenuItemData {
	
		private LevelListDrawable mLevellistDrawable;
		private String[]  mTitleID;
		private int mCount;
		
		public MenuItemData(LevelListDrawable mLevellistDrawable,
				String[] mTitleID, int mCount) {
			this.mLevellistDrawable = mLevellistDrawable;
			this.mTitleID = mTitleID;
			this.mCount = mCount;
		}
		
		public String getTitle(int index) {
			
			 return mTitleID[index];
		
		}
		
		public Drawable getDrawable(int index) {
			
			mLevellistDrawable.setLevel(index);
			return mLevellistDrawable.getCurrent();
			
		}
		
		public int getCount() {
			
			return mCount;
		}
}
